|
bargraph2 2.2.1
|
Functions | |
| void | bargraph2_cfg_setup (bargraph2_cfg_t *cfg) |
| Config Object Initialization function. | |
| BARGRAPH2_RETVAL | bargraph2_init (bargraph2_t *ctx, bargraph2_cfg_t *cfg) |
| Initialization function. | |
| void | bargraph2_default_cfg (bargraph2_t *ctx) |
| Click Default Configuration function. | |
| void | bargraph2_generic_transfer (bargraph2_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
| Generic transfer function. | |
| void | bargraph2_reset (bargraph2_t *ctx) |
| Reset function. | |
| void | bargraph2_write_byte (bargraph2_t *ctx, uint8_t input_data) |
| Write byte function. | |
| void | bargraph2_led_green (bargraph2_t *ctx, uint8_t index) |
| LED green function. | |
| void | bargraph2_led_red (bargraph2_t *ctx, uint8_t index) |
| LED red function. | |
| void | bargraph2_led_yellow (bargraph2_t *ctx, uint8_t index) |
| LED yellow function. | |
| void | bargraph2_leds_green (bargraph2_t *ctx, int start_index, int end_index) |
| LEDs green function. | |
| void | bargraph2_leds_red (bargraph2_t *ctx, int start_index, int end_index) |
| LEDs red function. | |
| void | bargraph2_leds_yellow (bargraph2_t *ctx, int start_index, int end_index) |
| LEDs red function. | |
| void | bargraph2_lights_out (bargraph2_t *ctx) |
| Lights out function. | |
| void | barpgraph2_power (bargraph2_t *ctx, uint8_t power_on_off) |
| Lights out function. | |
| void bargraph2_cfg_setup | ( | bargraph2_cfg_t * | cfg | ) |
Config Object Initialization function.
| cfg | Click configuration structure. |
@description This function initializes Click configuration structure to init state.
| void bargraph2_default_cfg | ( | bargraph2_t * | ctx | ) |
Click Default Configuration function.
| ctx | Click object. |
@description This function executes default configuration for Bargraph 2 Click.
| void bargraph2_generic_transfer | ( | bargraph2_t * | ctx, |
| uint8_t * | wr_buf, | ||
| uint16_t | wr_len, | ||
| uint8_t * | rd_buf, | ||
| uint16_t | rd_len ) |
Generic transfer function.
| ctx | Click object. |
| wr_buf | Write data buffer |
| wr_len | Number of byte in write data buffer |
| rd_buf | Read data buffer |
| rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
| BARGRAPH2_RETVAL bargraph2_init | ( | bargraph2_t * | ctx, |
| bargraph2_cfg_t * | cfg ) |
Initialization function.
| ctx | Click object. |
| cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this Click.
| void bargraph2_led_green | ( | bargraph2_t * | ctx, |
| uint8_t | index ) |
LED green function.
| ctx | Click object. |
| index | Index variable. |
@description This function turns on the green LED diode of the chosen segment.
| void bargraph2_led_red | ( | bargraph2_t * | ctx, |
| uint8_t | index ) |
LED red function.
| ctx | Click object. |
| index | Index variable. |
@description This function turns on the red LED diode of the chosen segment.
| void bargraph2_led_yellow | ( | bargraph2_t * | ctx, |
| uint8_t | index ) |
LED yellow function.
| ctx | Click object. |
| index | Index variable. |
@description This function turns on the green & red (yellow light) LED diode of the chosen segment.
| void bargraph2_leds_green | ( | bargraph2_t * | ctx, |
| int | start_index, | ||
| int | end_index ) |
LEDs green function.
| ctx | Click object. |
| start_index | Index variable. |
| end_index | End variable. |
@description This function turns on green LED diodes from the starting index to the end index.
| void bargraph2_leds_red | ( | bargraph2_t * | ctx, |
| int | start_index, | ||
| int | end_index ) |
LEDs red function.
| ctx | Click object. |
| start_index | Index variable. |
| end_index | End variable. |
@description This function turns on red LED diodes from the starting index to the end index.
| void bargraph2_leds_yellow | ( | bargraph2_t * | ctx, |
| int | start_index, | ||
| int | end_index ) |
LEDs red function.
| ctx | Click object. |
| start_index | Index variable. |
| end_index | End variable. |
@description This function turns on green & red (yellow light) LED diodes from the starting index to the end index.
| void bargraph2_lights_out | ( | bargraph2_t * | ctx | ) |
Lights out function.
| ctx | Click object. |
@description This function turns off all the LED diodes.
| void bargraph2_reset | ( | bargraph2_t * | ctx | ) |
Reset function.
| ctx | Click object. |
@description This function does a reset of the Click module.
| void bargraph2_write_byte | ( | bargraph2_t * | ctx, |
| uint8_t | input_data ) |
Write byte function.
| ctx | Click object. |
| input_data | Input data variable. |
@description This function writes one byte of data.
| void barpgraph2_power | ( | bargraph2_t * | ctx, |
| uint8_t | power_on_off ) |
Lights out function.
| ctx | Click object. |
| power_on_of | Power state ON/OFF |
@description This function turns off all the LED diodes.